-
A protocol for a
UIView
subclass that displays information about a selected annotation near that annotation.To receive updates from an object that conforms to the
MGLCalloutView
protocol, use the optional methods available in theMGLCalloutViewDelegate
protocol.Related examples
See the Display custom views as callouts example to learn how to customize an
See moreMGLCalloutView
.Declaration
Objective-C
@protocol MGLCalloutView <NSObject>
Swift
protocol MGLCalloutView : NSObjectProtocol
-
The
See moreMGLCalloutViewDelegate
protocol defines a set of optional methods that you can use to receive messages from an object that conforms to theMGLCalloutView
protocol. The callout view uses these methods to inform the delegate that the user has interacted with the the callout view.Declaration
Objective-C
@protocol MGLCalloutViewDelegate <NSObject>
Swift
protocol MGLCalloutViewDelegate : NSObjectProtocol
-
A specialized view that displays the current compass heading for its associated map.
See moreDeclaration
Objective-C
@interface MGLCompassButton : UIImageView
Swift
class MGLCompassButton : UIImageView